<?
$blockId = 'params_block_' .$this->varName;
?>
<div id="<?php echo $blockId; ?>" class="params_data_block">
	<?
	echo implode('', $this->htmlGroups);
	?>
	<input type="hidden" name="new_field_link" value="<?php echo htmlspecialchars(Mozg::Router('http')->Create($this->GetNewFieldUrl())); ?>">
	<input type="hidden" name="field_params_path" value="<?php echo htmlspecialchars($this->fieldConfig->GetPath()); ?>">
</div>
<?php
if ($this->_showDefined)
{
?>
<?php Mozg::SubAction()->Add('RequiredJS', array($this, 'RenderJS'), array(), 'ParamsJS'); ?>
<script type="text/javascript">
$(document).ready(function(){
	initializeParamFields($('#<?php echo $blockId; ?>'));
});
</script>
<?php
}
